class XinDongYinSi {
  XinDongYinSi();

  bool agreePrivacy = false;
  bool agreeQuickPassPrivacy = false;
  bool? agreeHuiYuan = false;

  // Json转Class
  factory XinDongYinSi.fromJson(Map<String, dynamic> json) {
    return XinDongYinSi()
      ..agreePrivacy = json['agreePrivacy']
      ..agreeQuickPassPrivacy = json['agreeQuickPassPrivacy']
      ..agreeHuiYuan = json['agreeHuiYuan'] ?? false;
  }

  // Map转Json
  Map<String, dynamic> toJson() => <String, dynamic>{
        'agreePrivacy': agreePrivacy,
        'agreeQuickPassPrivacy': agreeQuickPassPrivacy,
        'agreeHuiYuan': agreeHuiYuan,
      };
}
